package it.csa.prova;

import android.os.Bundle;
import android.util.Log;
import android.widget.EditText;
import android.widget.TextView;
import android.app.Activity;
import android.content.Intent;

public class DisplayMessageActivity extends Activity {

	private static final String TAG= "DisplayMessageActivity";
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
               
        Intent intent = getIntent();
        String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE);
        Log.i(TAG, "messaggio ricevuto "+message);
        
        setContentView(R.layout.activity_display_message);
        
        
        TextView textView = new TextView(this);
        textView.setTextSize(40);
        textView.setText(message);
        
        TextView testo = (TextView) findViewById(R.id.textView1);         
        testo.setText(message);
       // setContentView(textView);

        
        
        
    }

}
